import { memo, useEffect } from "react";
import Head from "../../components/head/head";
import { useDispatch } from "react-redux";
import { setInitParam } from "../../reducer/param";
import { initData } from "./constance";
import TopDate from "../../components/date/Date";
import List from "../../components/list/list";
import BtmNavBar from "../../components/bottomNavBar/BtmNavBar";

const OTA = memo(() => {
  const dispatch = useDispatch();
  useEffect(() => {
    dispatch(setInitParam(initData));
  }, []);
  return (
    <div>
      <Head></Head>
      <TopDate></TopDate>
      <List></List>
      <BtmNavBar></BtmNavBar>
    </div>
  );
});

export default OTA;
